package com.youxin.infra.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Item {

    private int id;
    private String name;
    private int counts;
    private Timestamp ts;

    @Override
    public String toString() {
        return "{" +
                "\"id\":" + "\"" + id + "\"" +
                ",\"name\":" + "\"" + name + "\"" +
                ",\"counts\":" + "\"" + counts + "\"" +
                ",\"ts\":" + "\"" + ts + "\"" +
                "}";

    }
}
